package com.goudan.rabbitmq.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.Message;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class TestListener implements TotalTransInfoListener {
    @Override
    public void handle(Message message) throws Exception {
        log.info("TestListener - 收到消息：{}", message.getBody());
    }
}
